package com.woniuxy.micropurchaseserver.purchasereturnmsg.service.impl;

import com.woniuxy.micropurchaseserver.bean.PurchaseReturnBean;
import com.woniuxy.micropurchaseserver.purchasereturnmsg.mapper.PurchaseReturnMapper;
import com.woniuxy.micropurchaseserver.purchasereturnmsg.service.PurchaseReturnService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class PurchaseReturnServiceImpl implements PurchaseReturnService {
    @Resource
    private PurchaseReturnMapper purchaseReturnMapper;
    @Override
    public List<PurchaseReturnBean> findAllPurchaseReturn(PurchaseReturnBean purchaseReturnBean) {
        return purchaseReturnMapper.findAllPurchaseReturn(purchaseReturnBean);
    }

    @Override
    public Integer deletePurchaseReturnById(Integer id) {
        return purchaseReturnMapper.deletePurchaseReturnById(id);
    }

    @Override
    public Integer UpdatePurchaseReturn(PurchaseReturnBean purchaseReturnBean) {
        return purchaseReturnMapper.UpdatePurchaseReturn(purchaseReturnBean);
    }

    @Override
    public Long InsertPurchaseReturn(PurchaseReturnBean purchaseReturnBean) {
        return purchaseReturnMapper.InsertPurchaseReturn(purchaseReturnBean);
    }
}
